﻿using System;

namespace HobSoft.SoccerBet2014.Domain.Models.KeyHelper
{
    public class SiteContextKeyGenerate : IModelKeyGenerate<Site.SiteContext>
    {
        public string Create(Site.SiteContext mod)
        {
            return Create(mod.BookerID, mod.Account, mod.ModelKey, mod.ContextKey);
        }

        public string Create(params object[] args)
        {
            if (args.Length < 4)
                throw new ArgumentException("need args 4");
            return string.Format("{0}|{1}|{2}|{3}", args);
        }
    }
}
